Skip to content

Conversation

@m2mathew
Copy link
Collaborator

@m2mathew m2mathew commented Oct 30, 2025

The issue

Address this issue, but for v7.x

Not able to print all rows of a datagrid in v7.x

This proposed change is aimed at v.7.x, which still has hundreds of thousands of downloads per week (including for the customers of my company).

The solution

Following a nearly identical solution in this PR that fixed v8.x, update the following:

  • Change the ExportDefaultToolbar in the docs to have 50 rows of data for testing
  • Update the exportDataAsPrint function in the useGridPrintExport hook to disable virtualization when printing

Visuals

Arc browser shown below

When Image
Before 2025-10-30--18 40 05@2x
After 2025-10-30--18 22 59@2x

Test cases

  1. Open the deployed Netlify preview app:
  2. Use Export → Print
  3. Expect to see all 50 of the rows in the print preview or printed document

@m2mathew m2mathew changed the title Fix/export print all the rows fix/export print all the rows in v7.x Oct 30, 2025
@mui-bot
Copy link

mui-bot commented Oct 30, 2025

Deploy preview: https://deploy-preview-20157--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against dc2b560

@flaviendelangle flaviendelangle requested review from cherniavskii and removed request for flaviendelangle November 3, 2025 06:43
@zannager zannager added the scope: data grid Changes related to the data grid. label Nov 3, 2025
@m2mathew
Copy link
Collaborator Author

We are attempting to upgrade to MUI-X v8 where this is already fixed, but it's tricky. We have a very customized version of DataGrid. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: Export scope: data grid Changes related to the data grid. v7.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants